<template>
  <pub-detail-description
    :ndColumn="2"
    :data="pageData"
    :columns="basic"
  ></pub-detail-description>
</template>
<script setup>
import { resource_routing_detail } from '@/api/system'
const props = defineProps({
  dialogId: {
    type: String,
    default: ''
  }
})
const pageData = ref({})
const basic = [
  { prop: 'platform', label: '平台类型', span: 1,type:'dict',dictCode:'SYS_PTLX' },
  { prop: 'moduleName', label: '模块名称', span: 1 },
  { prop: 'submoduleName', label: '子模块名称', span: 1 },
  { prop: 'pageName', label: '页面名称', span: 1 },
  { prop: 'url', label: '接口地址', span: 1 },
  { prop: 'urlName', label: '接口名称', span: 1 },
  { prop: 'routingCode', label: '鉴权注解', span: 1 },
  { prop: 'sort', label: '排序', span: 1 },
  { prop: 'remark', label: '备注', span: 2 }
]
const getDetail = async () => {
  let { data } = await resource_routing_detail(props.dialogId)
  pageData.value = data
}
onMounted(() => {
  getDetail()
})
</script>
<style lang="scss" scoped></style>
